﻿//
// Created by Administrator on 2020/9/20.
//
#include <iostream>
#include <vector>

int main() {

    std::vector<int> intVector;

    for (int i = 0; i < 10; ++i) {
        intVector.push_back(i);
    }

    std::cout << intVector.size() << std::endl;
    std::cout << intVector[9] << std::endl;
//    std::cout << intVector[10] << std::endl;
    auto begin = intVector.begin();
    std::cout << *begin << std::endl;
    begin++;
    std::cout << *begin << std::endl;
    return 0;
}
